package model;

import java.util.concurrent.atomic.AtomicInteger;

public class Request {

	private static final AtomicInteger ai = new AtomicInteger(0);
	
	private final int id = ai.getAndIncrement();
	
	private final double cost;

	public Request(double cost) {
		super();
		this.cost = cost;
	}

	public int getId() {
		return id;
	}

	public double getCost() {
		return cost;
	}

	@Override
	public String toString() {
		return "Request [id=" + id + ", cost=" + cost + "]";
	}
	
}
